<%@ page language="java" import="java.util.*" pageEncoding="utf-8"   isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>IT园</title>
<meta name="Keywords"
	content="IT园">
<meta name="description"
	content="IT园">
	<link href="css/user.css" rel="stylesheet" type="text/css">
<script src="js/jquery-1.10.2.min.js"></script>

<style type="text/css">
	.user-articel-list table{
		width: 99%;
		font-size: 12px;
		margin-left:4px;
		border: 1px solid #496DB9;
	}
	.user-articel-list table tr{
		height: 35px;
	}
	.user-articel-list a{
		color: #2965B1
	}
	.user-articel-list a:hover{
		text-decoration: underline;
	}
</style>
<link rel="stylesheet" href="bootstrap-3.3.5-dist/dist/css/bootstrap.css" type="text/css"></link>

</head>
<body>
<jsp:include page="/user/top.jsp"></jsp:include>
<div style="float: left;width:75%;">
	<div style="width: 100%;height: 35px;margin:3px 0 3px 8px;">
	 <div class="input-group"  style="width: 320px;" >
		<input type="text" class="form-control"/>
		 <span class="input-group-btn">
				<button type="button" class="btn btn-primary">查询</button>
				<button type="button" class="btn btn-info"  onclick="location.href='<%=basePath%>user/article/publishArticle'">添加文章</button>
		</span>
		</div>
	</div>
	<div class="user-articel-list">
		<table class="table">
			  <thead>
			    <tr>
			      <th><input type="checkbox"></th>
			      			<th>标题</th>
							<th>时间</th>
							<th>访问</th>
							<th>评论</th>
							<th>操作</th>
			      </tr>
			  </thead>
 			 <tbody>
  					<c:forEach items="${listRecycleArticles }" var="recycleArticle">
						<tr>
							<td><input type="checkbox"></td>
							<td>${recycleArticle.articleTitle }</td>
							<td><fmt:formatDate value="${recycleArticle.createDate}" type="both" pattern="yyyy-MM-dd HH:mm:ss" /></td>
							<td>${recycleArticle.clickRate }</td>
							<td>${recycleArticle.supportNum }</td>
							<td>
								<a href="user/article/putToRecycle?id=${recycleArticle.id }">删除</a>
								<a href="#">编辑</a>
								<a href="user/article/setToDraft?id=${recycleArticle.id }">设置为草稿</a>
							</td>
						</tr>
				</c:forEach>
  			</tbody>
		</table>
				<ul class="pagination" >
							    <li><a href="#">&laquo;</a></li>
							    <li class="active"><a href="#">1</a></li>
							    <li ><a href="#">2</a></li>
							    <li><a href="#">3</a></li>
							    <li><a href="#">4</a></li>
							    <li><a href="#">5</a></li>
							    <li><a href="#">&raquo;</a></li>
					</ul>
	</div>
</div>
<jsp:include page="/user/article/articleRight.jsp"></jsp:include>
</body>
</html>
